﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="queryOrder.aspx.cs"
    Inherits="WorkOrder.queryOrder" %>

<%@ Register Assembly="ZedGraph.Web" Namespace="ZedGraph.Web" TagPrefix="zgw" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>工单管理支持系统_服务支撑室</title>
    <link href="../css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/site2.css" type="text/css" rel="STYLESHEET" />
    <script type="text/javascript" src="../DatePicker/WdatePicker.js" defer="defer"></script>
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
    <script type="text/javascript">
        String.prototype.trim = function () {
            // 用正则表达式将前后空格，用空字符串替代。
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }
    </script>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 1px #54a6e2;">
    <form id="form1" runat="server">
    <input type="hidden" id="hidTown" runat="server" />
    <div>
        <table id="weizhi" width="100%;" style="border: none 0;">
            <tr>
                <td style="height: 2px;">
                </td>
            </tr>
            <tr>
                <td style="border: solid 1px #9fd6ff; background-image: url('../images/snap3.jpg');
                    height: 24px; color: #0930a5;">
                    &nbsp;&nbsp;<img align="absmiddle" src="../images/doc3.gif" />&nbsp;&nbsp;当前位置：工单统计与分析&nbsp;>>&nbsp;<asp:Label
                        ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="height: 1px;">
                </td>
            </tr>
        </table>
        <asp:Panel ID="Panel1" runat="server">
            <table width="100%" border="0">
                <tr>
                    <td>
                        <div style="border: solid 1px #9fd6ff; background-color: #f0f8ff">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 10px;">
                                    </td>
                                    <td>
                                        <table border="0" style="width: 100%">
                                            <tr>
                                                <td style="height: 24px;" align="left">
                                                    统计周期：&nbsp;&nbsp;
                                                    <input id="radJi" runat="server" name="rblIsBack" type="radio" value="1" />按季度统计&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <input id="radYue" runat="server" name="rblIsBack" type="radio" value="2" />按月统计&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <input id="radZhou" runat="server" name="rblIsBack" type="radio" value="3" />按周统计&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <input id="radRi" runat="server" name="rblIsBack" type="radio" value="4" />按日统计
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <table width="100%" border="0">
            <tr>
                <td>
                    <div style="border: solid 1px #9fd6ff; background-color: #f0f8ff">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <table border="0" style="width: 100%">
                                        <tr>
                                            <td style="height: 24px;" align="left" colspan="4">
                                                派单时间_起：<input type="text" class="TextBox" id="txtSTART_DATE" style="width: 195px;"
                                                    runat="server" onfocus="WdatePicker({skin:'whyGreen',readOnly:'true'});" />
                                                &nbsp;&nbsp;&nbsp;&nbsp; 派单时间_止：
                                                <input type="text" class="TextBox" id="txtEND_DATE" runat="server" style="width: 195px;"
                                                    onfocus="WdatePicker({skin:'whyGreen',readOnly:'true'});" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 24px;" align="left" colspan="4">
                                                <asp:Panel ID="palArea" runat="server">
                                                    区域：&nbsp;&nbsp;<asp:DropDownList ID="ddlArea" runat="server" Width="200px" CssClass="TextBox">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                                <asp:Panel ID="palTown" runat="server">
                                                    镇区：&nbsp;&nbsp;<asp:DropDownList ID="ddlTown" runat="server" Width="200px" CssClass="TextBox">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 24px;" align="left" colspan="4">
                                                <asp:Panel ID="palOrderType" runat="server">
                                                    业务类型：<asp:DropDownList ID="ddlOrderType" runat="server" Width="200px" CssClass="TextBox">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                                <asp:Panel ID="palProductType" runat="server">
                                                    产品类型：<asp:DropDownList ID="ddlProduct" runat="server" CssClass="TextBox" Width="200px">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                                <asp:Panel ID="palOrderState" runat="server">
                                                    工单状态：<asp:DropDownList ID="ddlOrderState" runat="server" CssClass="TextBox" Width="200px">
                                                    </asp:DropDownList>
                                                </asp:Panel>
                                                                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 24px;">
                                            </td>
                                            <td style="height: 24px;">
                                                <input id="Button1" runat="server" type="button" value="查  询" class="Button" onserverclick="btnSearch_ServerClick" />
                                            </td>
                                            <td style="height: 24px;">
                                                &nbsp;
                                            </td>
                                            <td style="height: 24px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
        <table style="width: 100%">
            <tr>
                <td>
                    <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9; border-bottom: none;">
                        <table style="width: 100%">
                            <tr>
                                <td style="height: 20px;">
                                    &nbsp;&nbsp;<img alt="" align="absmiddle" src="../images/181.gif" />&nbsp; <strong>查询结果</strong>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divgv" style="border: solid 1px #9fd6ff; background-color: #f0f8ff;">
                        <table width="100%">
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <div id="gv" style="border: solid 1px #9fd6ff; overflow: auto; width: 100%">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td style="text-align: left; vertical-align: top; width: 200px;">
                                                    <asp:GridView ID="GridView1" runat="server" CssClass="Table" OnRowDataBound="gvReport_RowDataBound"
                                                        EmptyDataText="[没有可显示的数据]">
                                                        <RowStyle HorizontalAlign="Center" />
                                                        <HeaderStyle CssClass="gridtitle" />
                                                    </asp:GridView>
                                                </td>
                                                <td style="text-align: center;">
                                                    <zgw:ZedGraphWeb ID="ZedGraphWeb1" runat="server" Width="500">
                                                    </zgw:ZedGraphWeb>
                                                </td>
                                                <td style="text-align: center;">
                                                    <zgw:ZedGraphWeb ID="ZedGraphWeb2" runat="server" Width="500">
                                                    </zgw:ZedGraphWeb>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <asp:Panel ID="palChild" runat="server">
                                        <div id="divChild" style="border: solid 1px #9fd6ff; overflow: auto; width: 100%">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td style="text-align: left; vertical-align: top; width: 200px;">
                                                        <asp:GridView ID="GridView2" runat="server" CssClass="Table" OnRowDataBound="gvReport_RowDataBound"
                                                            EmptyDataText="[没有可显示的数据]">
                                                            <RowStyle HorizontalAlign="Center" />
                                                            <HeaderStyle CssClass="gridtitle" />
                                                        </asp:GridView>
                                                    </td>
                                                    <td style="text-align: center;">
                                                        <zgw:ZedGraphWeb ID="ZedGraphWeb3" runat="server" Width="500">
                                                        </zgw:ZedGraphWeb>
                                                    </td>
                                                    <td style="text-align: center;">
                                                        <zgw:ZedGraphWeb ID="ZedGraphWeb4" runat="server" Width="500">
                                                        </zgw:ZedGraphWeb>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <script type="text/javascript">
                        document.getElementById("gv").style.width = document.documentElement.clientWidth - 50;
                    </script>
                    <input type="hidden" id="hidTitle" runat="server" />
                    <input type="hidden" id="hidTitle2" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
